There are three different database options when using the .NET Link Tracker Library.
This is an in memory database that is useful for testing purposes. When the application exits the database will no longer exists.
Example:
LinkLogic linkLogic = new LinkLogic(); //Trial Mode
LinkLogic linkLogicLicensed = new LinkLogic("place user name here", "place license key here"); //License Mode
//Use a in memory mock database for testing
ILinkTrackerDatabaseLogic databaseLogic = new LinkTrackerMockDatabase();
linkLogic.DatabaseLogic = databaseLogic;
Internally .NET Link Tracker uses the .NET Data Access Layer for loading and saving to your database. A license is included for use with the .NET Link Tracker. It is compatible with SQL Server, Oracle, MySQL, Firebird, SQLite, VistaDB, or Microsoft Access. On startup it will detect if the TrackedLinks table and TrackedLinkDetails table exists. If they do not exist the tables will be created.
Example:
LinkLogic linkLogic = new LinkLogic(); //Trial Mode
LinkLogic linkLogicLicensed = new LinkLogic("place user name here", "place license key here"); //License Mode
//This is the default and is not needed
//It is shown here as an example
linkLogic.DatabaseLogic = new LinkTrackerDatabaseLogic();
Add settings to your web.config or app.config to use the Knight .NET Data Access Layer.
Define the connection string normally in the config file. Specify the DALConnectionStringName as the name in your connection string. Specify the Provider Type using one of the Provider types below.
<connectionStrings>
<add name="ApplicationServices" connectionString="Data Source=Invoices.vdb4;"/>
</connectionStrings>
<appSettings>
<add key="DALConnectionStringName" value="ApplicationServices"/>
<add key="DALProviderType" value="VistaDbProvider"/>
</appSettings>
Providers
If you wish, you can implement your own data access for use with any database. Implement ILinkTrackerDatabaseLogic